package org.romzzz.gwtclassifieds.server.data;

import java.io.Serializable;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * This is the category bean that uses JDO for storage.
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Category implements Serializable {

	private static final long serialVersionUID = 3839203209694736361L;
	
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private String value;
	
	public Category() {}
	
	public Category(String value) {
		this.value = value;
	}
	
	public String getValue() {
		return this.value;
	}
	
	public void setValue(String value) {
		this.value = value;
	}

}
